#pragma once
class DBSession;
class DBWorld
{
public:
	DBWorld(void);
	bool Init(HWND hWnd);
	void Stop();
	DWORD WorkThread();
	void UpdateSession();
	DWORD AddSession(DBSession* pDS);
private:
	bool		m_bRun;
	HANDLE		m_hWordEvent;
	HANDLE		m_hWorkThread;
private:
	typedef map<DWORD, DBSession*> SessionMap;
	map<DWORD, DBSession*> m_mapSession;
};

extern DBWorld sDBWorld;
